const Mock = require('mockjs')
const obj = Mock.mock({
  'data|10-20': [
    {
      name: '@cname()',
      idCard: '@id()',
      address: '@city(true)',
      'workId|1-100': 1,
      department: {
        'name|1': ['技术部', '销售部', '总裁办']
      },
      position: {
        'name|1': ['员工', '组长', '部长', '经理']
      },
      'workState|1': ['正式', '实习', '退休'],
      'phone|1': ['16658940564', '16287921560', '12522684982', '14625382495'],
      'gender|1': ['男', '女'],
      beginDate: '@date(yyyy-MM-dd)',
      header: "@image('100x100', '#50B347', '#FFF', 'Mock.js')"
    }
  ]

})
console.log(obj)
